package com.cn.feign;

import com.cn.vo.PostUserEntityReqVO;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "CLIENT-87",fallback = FeignClientFallback.class)
public interface UserFeign {

    @GetMapping("/getNullUser")
    String getNullUser();

    @GetMapping("/getUser")
    String getUser(@RequestParam("name") String name);

    @PostMapping("/postNullUser")
    String postNullUser();

    @PostMapping("/postUser")
    String postUser(String name);

    @PostMapping("/postUserEntity")
    String postUserEntity(PostUserEntityReqVO reqVO);

}

